"""
@Author : 合肥一元数智教育科技有限公司
@Date :  2025/2/28 10:50
@Description : 继承细节

1. 继承链

"""

class Aoo:
    var1 = 'class AOO'
    var2 = "hello Aoo"

class Boo(Aoo):
    var1 = 'class Boo'
    var3 = "hello boo"

class Coo(Boo):
    var1 = 'class Coo'
    pass

coo = Coo()
print(coo.var1)
print(coo.var2)
print(coo.var3)